package xushuo.dao.entity.weixin.message.from;

import xushuo.dao.entity.weixin.message.BaseMessage;
import xushuo.service.defaultData.DefaultWeiXinData;

/**
 * Create by zhangpe0312@qq.com on 2018/2/1.
 */
public class FromImgMessage extends BaseMessage {

    private String PicUrl;
    private String MediaId;
    private String MsgId;

    private FromImgMessage(String ToUserName, String FromUserName,
                           long CreateTime, String MsgType, String picUrl, String mediaId, String msgId) {
        super.setCreateTime(CreateTime);
        super.setFromUserName(FromUserName);
        super.setMsgType(DefaultWeiXinData.FromMessage.TYPE_IMAGE);
        PicUrl = picUrl;
        MediaId = mediaId;
        MsgId = msgId;
    }

    public static FromImgMessage BuilderImgMessage(String ToUserName, String FromUserName,
                                                   long CreateTime, String MsgType, String picUrl, String mediaId, String msgId) {
        return new FromImgMessage(ToUserName, FromUserName, CreateTime, MsgType, picUrl, mediaId, msgId);
    }

    public String getPicUrl() {
        return PicUrl;
    }

    public void setPicUrl(String picUrl) {
        PicUrl = picUrl;
    }

    public String getMediaId() {
        return MediaId;
    }

    public void setMediaId(String mediaId) {
        MediaId = mediaId;
    }

    public String getMsgId() {
        return MsgId;
    }

    public void setMsgId(String msgId) {
        MsgId = msgId;
    }
}
